@extends('back.index')
@section('title','发布新闻-后台管理系统')
@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <h2 class="sub-header power_mian">新闻管理</h2>
        <div class="table-responsive">
            <table class="table table-striped">
                <tr>
                    <th>新闻标题</th>
                    <th>添加时间</th>
                    <th>操作</th>
                </tr>
                @if(count($List))
                @foreach($List as $k)
                <tr>
                    <td>{{$k->title}}</td>
                    <td>{{date('Y-m-d H:i:s',$k->addtime)}}</td>
                    <td>
                        <a href="{{url('back/writer/newDist/'.$k->id)}}" class="btn btn-info">查看正文</a>
                        &nbsp;
                        <a href="{{url('back/writer/newList/del/'.$k->id)}}" class="btn btn-info">删除</a>
                    </td>
                </tr>
                @endforeach
                @else
                    <tr>
                        <td colspan="3">
                            <h3 class="book_name" >暂无数据</h3>
                        </td>
                    </tr>
                @endif
            </table>
            {{$List->links()}}
        </div>
    </div>
@endsection